package semana2.bucles.ejercicio17_tablamultiplicarScan;

import java.util.Scanner;

public class Ejercicio17 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n;
		do {
			System.out.println("Introduce n: ");
			n = scan.nextInt();
			if (n >= 1 && n <= 10) {
				for (int i = 1; i <= 10; i++) {
					System.out.println(n + "x " + i + " =" + (n * i));
				}

			} else if (n < 0 || n > 10) {
				System.out.println("Introduce un numero entre 1 y 10.");
			}

		} while (n != 0);
		System.out.println("Adios!");
	}
}
